package com.rui.study.micro.usermanager.config.filter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import java.io.IOException;

public class CleanCookieFilter implements Filter {

    private static final Logger LOGGER = LoggerFactory.getLogger(CleanCookieFilter.class);

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        chain.doFilter(request, response);
        LOGGER.info("Clean cookie when static resources ..........................");
    }

    @Override
    public void destroy() {

    }
}
